# # dict也就是c++中的map
# d = {1:2,2:3,3:4}
# print(d)

# d2 = {"jack":111,"anni":109}
# print(d2)
# d2["jack"] = 110
# print(d2)

# if(d2.get("jack")!= None):
#     print("get")
# else:
#     print("None")


# d2.pop("jack") # 删除某个key

# if(d2.get("jack")!= None):
#     print("get")
# else:
#     print("None")


# #-----------------------------set-----------------------------
# print(set([1,23,5,7]))

# s = {1,2,3,4,5,1,2,3,4,5}
# print(s)
# print(type(s))
# print(type((1,2)))
# s.add(6)
# s.add(6) # 添加key，如果重复就
# s.remove(6) # 删除key


# print(s)


l1 = [1,2,3,5]
s1 = set(l1)
l1[0] = 100
s1.add(7)
s1.add([1,23,4]) # set的key必须是不可变类型，而list是可变的
print(s1)


dict1 = {1:2,3:4,5:6}
